package com.bestv.search.common.service;

import com.bestv.search.common.dataSource.DataSourceKey;
import com.bestv.search.common.model.TopKeyword;

import java.util.List;

/**
 * @author Michael Wang
 */

// $Id: TopKeywordManager.java 163 2013-03-25 03:46:39Z luo.xiaojun $
public interface TopKeywordManager {

    List<TopKeyword> getTopKeywordByKeyword(DataSourceKey key, String keyword);

    void saveTopKeywords(DataSourceKey key, List<TopKeyword> storeList);

    void removeTopKeyword(DataSourceKey key, String keyword);

    List<TopKeyword> getTotalTopKeywords(DataSourceKey key, int limit);

    List<TopKeyword> getAllTopKeywords(DataSourceKey key);

    List<TopKeyword> getTopKeywords(DataSourceKey key, int start, int limit);

    List<TopKeyword> getTopKeywordByKeyword(DataSourceKey key, String keyword, int start, int limit);

    int getTotalCount(DataSourceKey key);

    int getTotalCountByKeyword(DataSourceKey key, String keyword);

    void saveTopKeyword(DataSourceKey key,TopKeyword topKeyword);
}
